home *** CD-ROM | disk | FTP | other *** search
- /* sinh.c from page 243*/
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- main(int argc, char **argv)
- {
- double result;
- if(argc < 2)
- {
- printf("usage: %s <value>\n", argv[0]);
-
- }
- else
- {
- result = sinh(atof(argv[1]));
- if ( errno != ERANGE)
- {
- printf("Hperbolic sine of %s = %f\n",
- argv[1], result);
- }
- }
- }